//
//  EditServiceTaskTableViewCell.swift
//  DSHCMerchant
//
//  Created by 罗德良 on 2018/5/9.
//  Copyright © 2018年 袋鼠好车. All rights reserved.
//

import UIKit

class EditServiceTaskTableViewCell: UITableViewCell {
    
    @IBOutlet var userNameLabel: UILabel!
    @IBOutlet var priceLabel: UILabel!
    
    @IBOutlet var contentLabel: UILabel!
    
    @IBOutlet var userHeaderImageView: UIImageView!
    
    @IBOutlet var signView: UIView!
    
    typealias CellBlock = () -> Void
    
    var cellblock:CellBlock?
    
    func callBackBlock(_ block: @escaping CellBlock) {
        
        cellblock = block
    }
    
    typealias CellUserHeaderBtnBlock = () -> Void
    
    var cellUserheaderbtnblock:CellUserHeaderBtnBlock?
    
    func cellUserheaderbtnblock(_ block: @escaping CellUserHeaderBtnBlock) {
        
        cellUserheaderbtnblock = block
    }
    override func awakeFromNib() {
        super.awakeFromNib()
    userHeaderImageView.roundCorner(radius: userHeaderImageView.frame.height/2)
    }

    @IBAction func signBtnPress(_ sender: UIButton) {
        if cellblock != nil {
            self.cellblock!()
        }
    }
    
    
    @IBAction func HeaderBtnPress(_ sender: UIButton) {
        if cellUserheaderbtnblock != nil{
            self.cellUserheaderbtnblock!()
        }
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
